package cn.coder.toolkit;


import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;

public class CList<T> extends ArrayList<T> {

    public static void main(String[] args) {
        CList<String> list = CList.of();
        System.out.println(list);
    }

    public CList() {}

    public CList(Collection<? extends T> c) {
        super(c);
    }

    @SafeVarargs
    public static <T> CList<T> of(T... ts) {
        CList<T> list = new CList<>();
        list.addAll(Arrays.asList(ts));
        return list;
    }

}
